﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Template_20130918103822.aspx.cs" Inherits="BPM.ReportDesigner.GenerateReportFiles.Template_20130918103822" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>发票申请查询</title>
    <script src="../ImportScript/jquery-1.7.1.min.js" type="text/javascript"></script>
    <link href="../ImportScript/My97DatePicker/My97DatePicker/skin/WdatePicker.css" rel="stylesheet"
        type="text/css" />
    <script src="../ImportScript/My97DatePicker/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        var actionRow, actionColor, actionFolat;
        function Report_Print() {
            var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH="0" HEIGHT="0" CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
            document.body.insertAdjacentHTML('beforeEnd', WebBrowser); //在body标签内加入html(WebBrowser activeX控件)
            WebBrowser1.ExecWB(7, 1); //打印预览
        }
        function SetColor(obj) {
            if (actionRow == null) {
                actionRow = obj;
                actionColor = obj.style.backgroundColor;
                actionFolat = obj.style.color;
                obj.style.backgroundColor = "#28C787";
                obj.style.color = "#FFFFFF";
            } else {
                actionRow.style.backgroundColor = actionColor;
                actionRow.style.color = actionFolat;
                actionRow = obj;
                actionColor = obj.style.backgroundColor;
                actionFolat = obj.style.color;
                obj.style.backgroundColor = "#28C787";
                obj.style.color = "#FFFFFF";
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="pl10 pr10">
        <div class="place">
            <div class="placeleft">
                <i></i>您现在的位置：<a href="#">报表</a> >> <strong><b>发票申请查询</b></strong>
            </div>
            <div class="globalBtn">
            </div>
        </div>
        <div class="listTable_1">
            <%-- <div class="tableh3">
                发票申请查询</div>--%>
            <table border="0" cellpadding="0" cellspacing="0" class="listTable">
                <tr>  <td colspan="3">    <h5 class="titleBG">        查询条件</h5>  </td></tr> <tr><td width="33%" nowrap>    <span  style="white-space:nowrap;word-break:break-all;">Document No</span>    <asp:TextBox ID="DOCUMENTNO" runat="server" CssClass="inputboder2"></asp:TextBox></td><td width="33%" nowrap>    <span  style="white-space:nowrap;word-break:break-all;">Summary</span>    <asp:TextBox ID="PROCESSSUMMARY" runat="server" CssClass="inputboder2"></asp:TextBox></td></tr>
            </table>
            <div class="pt10">
                <asp:Button ID="SearchButton" runat="server" Text="查询" CssClass="btn" onclick="SearchButton_Click"/>
                <input type="button" class="btn" value="打印预览" onclick="Report_Print()" />&nbsp;&nbsp;<asp:Button
                    ID="Button1" runat="server" Text="导出Excel" CssClass="btn" OnClick="ExportToExcel_Click" />
            </div>
            <div class="pt10">
                <table class="table table-bordered table-hover table-condensed">
                    <tr>
                        <th class="reptTH" style="width:20px;">No.</th><th class="reptTH" style="width:180px">FORMID</th><th class="reptTH" style="width:330px">PROCESSNAME</th><th class="reptTH" style="width:240px">INCIDENT</th><th class="reptTH" style="width:330px">DOCUMENTNO1</th><th class="reptTH" style="width:270px">APPLICANT</th><th class="reptTH" style="width:330px">REQUESTDATE</th><th class="reptTH" style="width:300px">DEPARTMENT</th><th class="reptTH" style="width:210px">COMPANY</th><th class="reptTH" style="width:420px">PROCESSSUMMARY</th><th class="reptTH" style="width:180px">STATUS</th><th class="reptTH" style="width:270px">KPCOMPANY</th><th class="reptTH" style="width:270px">FKCOMPANY</th><th class="reptTH" style="width:390px">INVOICEAMOUNT</th><th class="reptTH" style="width:330px">INVOICETYPE</th><th class="reptTH" style="width:120px">RATE</th><th class="reptTH" style="width:420px">INVOICESUMMARY</th><th class="reptTH" style="width:180px">REMARK</th><th class="reptTH" style="width:270px">INVOICENO</th><th class="reptTH" style="width:240px">KPAMOUNT</th>
                    </tr>
                    <asp:Repeater ID="ReportList" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td class="reptTD" style="border-right-width:1px;" ><%# Container.ItemIndex + 1%></td><td class="reptTD"><%# Eval("FORMID")%></td><td class="reptTD"><%# Eval("PROCESSNAME")%></td><td class="reptTD"><%# Eval("INCIDENT")%></td><td class="reptTD"><%# Eval("DOCUMENTNO1")%></td><td class="reptTD"><%# Eval("APPLICANT")%></td><td class="reptTD"><%# Eval("REQUESTDATE")%></td><td class="reptTD"><%# Eval("DEPARTMENT")%></td><td class="reptTD"><%# Eval("COMPANY")%></td><td class="reptTD"><%# Eval("PROCESSSUMMARY")%></td><td class="reptTD"><%# Eval("STATUS")%></td><td class="reptTD"><%# Eval("KPCOMPANY")%></td><td class="reptTD"><%# Eval("FKCOMPANY")%></td><td class="reptTD"><%# Eval("INVOICEAMOUNT")%></td><td class="reptTD"><%# Eval("INVOICETYPE")%></td><td class="reptTD"><%# Eval("RATE")%></td><td class="reptTD"><%# Eval("INVOICESUMMARY")%></td><td class="reptTD"><%# Eval("REMARK")%></td><td class="reptTD"><%# Eval("INVOICENO")%></td><td class="reptTD"><%# Eval("KPAMOUNT")%></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr>
                        <td colspan="20" style="text-align: left; padding: 5px;">
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CustomInfoHTML="Count %RecordCount%" HorizontalAlign="left" Width="100%" CssClass="aspNetPager" OnPageChanged="AspNetPager1_PageChanged" PageSize="10" AlwaysShow="true" SubmitButtonStyle="display:none" InputBoxStyle="display:none" NextPageText="下一页" FirstPageText="首页" LastPageText="末页" PrevPageText="上一页"></webdiyer:AspNetPager>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
